<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>demo</title>
 <jsp:include page="addClassification.jsp"></jsp:include> 
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="../../js/jquery-1.9.1.js"></script>
<script src="../../js/bootstrap.min.js"></script>
<script src="../../js/jqPaginator.js"></script>
<script src="../classification/Classification.js"></script>
<!-- Bootstrap -->

<link href="../../css/bootstrap.min.css" rel="stylesheet" />
<link href="../classification/Classification.css" rel="stylesheet" />


<style>
.alllists {
	width: 100%;
}
.buttonSt{
	text-align: right;
}
#trTh th {
	text-align: center;
}

</style>
</head>
<body>
	<div class="container-fluid alllists">
		<div class="row-fluid">
			<div class="span12">
				<div id="tools" class="buttonSt">
					<button id="addclassification" class="btn btn-primary btn-large" type="button"
						data-toggle="modal" >添加</button>
					<button id="deleteBtn" class="btn btn-large btn-danger"
						type="button">删除</button>
				</div>
				<div>
					<table id="cfList" class="table table-bordered table-hover">
						<thead>
							<tr id="trTh">
								<th><input id="selectAll" class="checkbox" type="checkbox" /></th>
								<th>编号</th>
								<th>名称</th>
								<th colspan="2">状态</th>
							</tr>
						</thead>
						<tbody>
							<c:forEach items="${pageResult.resultList}" var="cf">
								<tr>
									<td><input name="id" id="cfid" class="checkbox" type="checkbox" value="${cf.id}" />
									</td>
									<td>${cf.id}</td>
									<td>${cf.name}</td>
									<td><button name="editBtn" objId="${cf.id}"
											class="btn btn-sm-block btn-sm-info">修改</button>
									</td>
								</tr>
							</c:forEach>
						<tbody>
					</table>
				</div>
			</div>
		</div>
	</div>
	<div style="text-align: center;">
		<ul class="pagination" id="pagination2"></ul>
	</div>
	<div style="text-align: center;">
		<div id="pageResult">
			<input id="pageCount" type="hidden" value="${pageResult.pageCount}" />
			<input id="totalCount" type="hidden" value="${pageResult.totalCount}" />
			<input id="pageIndex" type="hidden" value="${pageResult.pageIndex}" />
			<input id="pageSize" type="hidden" value="${pageResult.pageSize}" />
		</div>
		<!-- footer -->

	</div>

</body>

</html>